import time
def a(words, s):
    strs = ''
    for i in words:
        strs += i[0]
    if strs == s:
        return True
    else:
        return False
aa = ['adsdff', 'fddfdf', 'dgsdg', 'fgfd']
start = time.time()
time.sleep(2)
print(a(aa, 'afdf'))
result = time.time() - start - 2
print(result)
